* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow: hidden;
}

body {
  perspective: 2000px;
  background-color: black;
}

.container {
  width: 100vw;
  height: 100vh;
  transform-style: preserve-3d;
  position: relative;
  animation: rotate 20s infinite linear;
}
.container img {
  position: absolute;
  width: 300px;
  height: 400px;
  top: 50%;
  left: 50%;
  margin-left: -150px;
  margin-top: -200px;
  backface-visibility: hidden;
}
.container img:nth-child(1) {
  transform: rotateY(0deg) translateZ(-500px);
}
.container img:nth-child(2) {
  transform: rotateY(36deg) translateZ(-500px);
}
.container img:nth-child(3) {
  transform: rotateY(72deg) translateZ(-500px);
}
.container img:nth-child(4) {
  transform: rotateY(108deg) translateZ(-500px);
}
.container img:nth-child(5) {
  transform: rotateY(144deg) translateZ(-500px);
}
.container img:nth-child(6) {
  transform: rotateY(180deg) translateZ(-500px);
}
.container img:nth-child(7) {
  transform: rotateY(216deg) translateZ(-500px);
}
.container img:nth-child(8) {
  transform: rotateY(252deg) translateZ(-500px);
}
.container img:nth-child(9) {
  transform: rotateY(288deg) translateZ(-500px);
}
.container img:nth-child(10) {
  transform: rotateY(324deg) translateZ(-500px);
}

@keyframes rotate {
  from {
    transform: rotateY(0);
  }
  to {
    transform: rotateY(360deg);
  }
}